package by.myteam.gonki.states.movementstates;


public enum MovementStates {
	MOVE_UP(new UpMovementState(), 'w'),
	MOVE_BOTTOM(new BottomMovementState(), 's'),
	MOVE_RIGHT(new RightMovementState(), 'd'),
	MOVE_LEFT(new LeftMovementState(),'a'),
	NORMAL(new NormalMovementState(), '/'),
	SHIFT(new NitroMovementState(), 'z');
	
	private MovementStates(IMovementState state, char key){
		this.state = state;
		this.key = key;
		this.isPressed = false;
	}
	
	private IMovementState state;
	private char key;
	private boolean isPressed;
	
	public boolean isPressed() {
		return isPressed;
	}
	public void setPressed(boolean isPressed) {
		this.isPressed = isPressed;
	}
	public char getKey() {
		return key;
	}
	public IMovementState getState(){
		return state;
	}
}
